package com.heima.apis.article;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-wemedia")
public interface IWemediaClient {
    /**
     * 获取文章发布的列表
     * @param reqDto
     * @return
     */
    @PostMapping("/admin/api/v1/news/list_vo")
    public ResponseResult list(@RequestBody WmNewsPageReqDto reqDto);


    @PostMapping("/api/v1/user/{articleId}")
    public String getName(@PathVariable("articleId")  Integer articleId);


}
